<?php 
namespace app\exam\controller;
use think\Db;
class Category extends Base{

	public function read(){
		$data=Db::table('type_name')->select();
		// print_r($data);die;
		return json_encode(['code'=>10000,'msg'=>'查询成功','data'=>$data]);

	}
	public function test(){
		 echo 'aaaatest';
	}





}
















 ?>